﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCoreDemo.Entity
{
    public abstract class BaseEntity : IEntity, IHasManage// , IHasSoftDelete
    {
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public long Id { get; set; }

        /// <summary>
        /// 录入人
        /// </summary>
        public virtual string Create_User_Id { get; set; }

        /// <summary>
        /// 录入时间
        /// </summary>
        public virtual DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 最后修改人
        /// </summary>
        public virtual string Modify_User_Id { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        public virtual DateTime ModifyTime { get; set; } = DateTime.Now;

    }
}
